package ooday01exercise;

public class ExtendsTest {
    public static void main(String[] args) {
        Student tj = new Student();
        tj.name="唐俊";
        tj.age=23;
        tj.address="光华公园";
        tj.classID=2507;
        tj.school="达内";
        tj.eat();
        tj.sleep();
        tj.sayHi();
        tj.study();
        Student zq =new Student("张琪",108,"福还原",2507,"达内");
        zq.eat();
        zq.sleep();
        zq.sleep();
        zq.study();
        System.out.println("--------------");
        Teacher te =new Teacher();
        te.name="唐俊";
        te.age= 18;
        te.address="随便";
        te.salary="35465";
        te.eat();
        te.teach();
        Teacher te2 =new Teacher("秦命",34,"赤练大陆","124132");
        te2.sayHi();
        te2.teach();
        System.out.println("---------------------");
        Doctor yq = new Doctor();
        yq.name= "月晴";
        yq.age =23;
        yq.address="不知";
        yq.title = "主任医师";
        yq.sleep();
        yq.cut();
        Doctor ye = new Doctor("妖儿",45,"未知","护士");
        ye.eat();
        ye.cut();
    }
}
